//
//  GMTOurOrderModel.h
//  GMTMall
//
//  Created by  Mac on 2020/10/28.
//  Copyright © 2020 lay. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class OrderGoodsEntityList;

typedef NS_OPTIONS(NSInteger, OurOrderBlockType) {
    GMTOurStoreAction_RefundMoney = 1 << 0,///<  1申请退款
    GMTOurStoreAction_ReceiptGoods = 1 << 1, ///<   2确认收货
    GMTOurStoreAction_BuyAgain = 1 << 2,///<   4再次购买
    GMTOurStoreAction_CloseOrder = 1 << 3,///<  8关闭订单
    GMTOurStoreAction_Pay = 1 << 4,///<  16去支付
    GMTOurStoreAction_AfterSale = 1 << 5,///<32售后详情
    GMTOurStoreAction_WaitBackMoney = 1 << 6,///<64等待退款，弹出提示等待退款
    GMTOurStoreAction_DidBackMoney = 1 << 7,///<128已退款，弹出提示已退款

};

NS_ASSUME_NONNULL_BEGIN

@interface StoreBtnsModel : NSObject
@property(nonatomic,copy)NSString * title;
@property(nonatomic,copy)UIColor * color;
@property(nonatomic,assign)OurOrderBlockType clickType;
-(instancetype)initWithTitle:(NSString * )title andColor:(UIColor *)titleColor andClickType:(OurOrderBlockType)clickType;
@end



@interface GMTOurOrderModel : NSObject
@property(copy,nonatomic) NSString * actualPrice;///<实际支付的金额
@property(copy,nonatomic) NSString * addTime;///<下单时间
@property(copy,nonatomic) NSString * address;///< 详细地址
@property(copy,nonatomic) NSString * city;///< 市
@property(assign,nonatomic) NSInteger commentCount;///< 评价总数
@property(copy,nonatomic) NSString * confirmTime;///< 确认时间
@property(copy,nonatomic) NSString * consignee;///< 收货人
@property(copy,nonatomic) NSString * country;///< 国家
@property(copy,nonatomic) NSString * couponId;///< 使用的优惠券Id
@property(copy,nonatomic) NSString * couponPrice;///< 优惠价格
@property(copy,nonatomic) NSString * district;///< 地区
@property(copy,nonatomic) NSString * expireTime;///< 订单过期时间
@property(assign,nonatomic)NSInteger  fromType;///< 用户下单来源类型 1:微信小程序 2:微信公众号 3:app 4:H5 5:支付宝小程序 6:QQ小程序
@property(assign,nonatomic) NSInteger  goodsCount;///< 商品总数
@property(copy,nonatomic) NSString * goodsId;///< 商品ID
@property(copy,nonatomic) NSString * goodsName;///< 商品名称
@property(copy,nonatomic) NSString * goodsSn;///< 商品编码
@property(copy,nonatomic) NSString * goodsSpecifitionNameValue;///< 商品规格详情
@property(copy,nonatomic) NSString * handleOption;///<可操作的选项
@property(copy,nonatomic) NSString * ID;///<
@property(copy,nonatomic) NSString * integralMoney;///< 积分抵扣金额
@property(copy,nonatomic) NSString * listPicUrl;///< 图片链接
@property(copy,nonatomic) NSString * marketPrice;///<市场价
@property(copy,nonatomic) NSString * mobile;///< 手机号
@property(copy,nonatomic) NSString * nickName;///< 会员昵称
@property(assign,nonatomic) NSInteger  number;///<商品数量

@property(copy,nonatomic) NSArray <OrderGoodsEntityList *>* orderGoodsEntityList;

@property(copy,nonatomic) NSString * orderId;///< 订单ID 这个数据字段没用

@property(copy,nonatomic) NSString * orderPrice;///< 订单总价

@property(copy,nonatomic) NSString * orderSn;///< 订单编号
   
@property(assign,nonatomic) NSInteger  orderStatus;///<订单状态  -1:秒杀成功(这里只是秒杀成功，还需要用户下单补充订单信息) 0:订单创建成功等待付款 100:订单超时已过期 101:订单已取消 102:订单已删除 201:订单已付款,等待发货 300:订单已发货 301:用户确认收货 401:没发货，退款　402:已收货，退款退货
   
@property(copy,nonatomic) NSString * orderStatusText;///< 订单状态处理

@property(assign,nonatomic) NSInteger orderType;///<订单类型 1：商城订单 2：店铺自提订单 3：秒杀订单

@property(copy,nonatomic) NSString * parentId;///< 父级订单ID

@property(assign,nonatomic) NSInteger  payStatus;///< 付款状态 1:未付款 2:付款中 3:已付款 4:退款

@property(copy,nonatomic) NSString * payTime;///< 支付时间
   
@property(copy,nonatomic) NSString * postscript;///< 留言
   
@property(copy,nonatomic) NSString * prepayId;///< 支付PREPAY_ID
   
@property(copy,nonatomic) NSString * province;///< 省

@property(copy,nonatomic) NSString * retailPrice;///< 零售价格
   
@property(copy,nonatomic) NSString * selfBuyBase;///< 自购返佣基数
   
@property(copy,nonatomic) NSString * shippingCode;///< 快递公司CODE

@property(copy,nonatomic) NSString * shippingFee;///< 快递费用

@property(copy,nonatomic) NSString * shippingId;///< 快递公司ID
  
@property(copy,nonatomic) NSString * shippingName;///< 快递公司名称
   
@property(copy,nonatomic) NSString * shippingNo;///< 快递单号
   
@property(assign,nonatomic) NSInteger  shippingStatus;///<发货状态 商品配送情况;1:未发货 2:已发货 3:已收货 4:退货

@property(copy,nonatomic) NSString * shopsId;///< 店铺ID
   
@property(copy,nonatomic) NSString * shopsName;///< 店铺名称

@property(copy,nonatomic) NSString * shopsSn;///< 店铺序号

@property(copy,nonatomic) NSString * skuId;///< SKU_ID

 @property(copy,nonatomic) NSString * userId;///< 会员ID

@property(nonatomic,strong)NSString * goodsOnSale;

@property(strong,nonatomic)NSString * refundTime; ///<申请退款时间

@property(copy,nonatomic) NSString * moId;

/*
 业务数据
 */

@property(nonatomic,assign)CGRect contentRect;

@property(nonatomic,strong)NSArray * btnsArr;

@property(nonatomic,strong)NSString * title;

@end





NS_ASSUME_NONNULL_END
